package com.atguigu.serviceedu.mapper;

import com.atguigu.serviceedu.entity.EduCourse;
import com.atguigu.serviceedu.entity.vo.CoursePublishVo;
import com.atguigu.serviceedu.entity.vo.CourseWebVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author atguigu
 * @since 2022-04-06
 */
@Mapper
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 运用mapper来进行多表查询（左连接）
     * @param id
     * @return
     */
    CoursePublishVo getPublishCourseInfo(String id);

    CourseWebVo selectInfoWebById(String courseId);

}
